package com.his.server.utils.main;

public class ClassTool {
	
	public static Class loadClass (String className) throws ClassNotFoundException {
		
		Class cls = null;
		
		try {
			cls = Thread.currentThread().getContextClassLoader().loadClass(className);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		if (cls == null) {
			cls = Class.forName(className);
		}
		
		return cls;
	}
}